import request from '@/utils/request'

export function getTopicList(params) {
  return request.get('/topic', params)
}

export function getTopicDetail(params) {
  return request.get('/topicMsg', params)
}

export function publishComment(body) {
  return request.post('/comment', body)
}

export function deleteComment(params) {
  return request.delete('/comment', params)
}

export function getClassify() {
  return request.get('/classify')
}

export function addTopic(body) {
  return request.post('/topic', body)
}

export function updateTopic(body) {
  return request.put('/topic', body)
}

export function getUserPublish(params) {
  return request.get('/topicUserMsg', params)
}

export function getTopicNormalMsg(params) {
  return request.get('/topicNormalMsg', params)
}

export function delTopic(params) {
  return request.delete('/topic', params)
}

export function getUserComment(params) {
  return request.get('/commentMsg', params)
}

